import request from '@/utils/request'

// 查询配件库存明细列表
export function listCar_4s_parts_stock_detail(query) {
  return request({
    url: '/system/car_4s_parts_stock_detail/list',
    method: 'get',
    params: query
  })
}

// 查询配件库存明细详细
export function getCar_4s_parts_stock_detail(partsStockDetailId) {
  return request({
    url: '/system/car_4s_parts_stock_detail/' + partsStockDetailId,
    method: 'get'
  })
}

// 新增配件库存明细
export function addCar_4s_parts_stock_detail(data) {
  return request({
    url: '/system/car_4s_parts_stock_detail',
    method: 'post',
    data: data
  })
}

// 修改配件库存明细
export function updateCar_4s_parts_stock_detail(data) {
  return request({
    url: '/system/car_4s_parts_stock_detail',
    method: 'put',
    data: data
  })
}

// 删除配件库存明细
export function delCar_4s_parts_stock_detail(partsStockDetailId) {
  return request({
    url: '/system/car_4s_parts_stock_detail/' + partsStockDetailId,
    method: 'delete'
  })
}
